package org.lboot.flow.module.assign;


import org.lboot.jpa.service.*;
import org.springframework.data.jpa.domain.Specification;

import java.util.List;

/**
 * @author kindear
 * 流程任务分配
 */
public interface FlowTaskAssignService extends UniService<FlowTaskAssign,String> {
    @Deprecated
    List<FlowTaskAssign> getAll(Specification<FlowTaskAssign> specification);

    /**
     * 获取当前登录用户拥有的审核指派
     * @return 审核指派列表
     */
    List<FlowTaskAssign> getUserAssigns();

    List<FlowTaskAssign> getByFlowCodeAndFlowNodeId(String flowCode, String flowNodeId);

    List<FlowTaskAssign> deleteByFlowCode(String code);


    List<FlowTaskAssign> getByFlowCode(String code);

}
